package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Leavemess entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "leavemess", catalog = "common")
public class Leavemess implements java.io.Serializable {

	// Fields

	private Integer id;
	private short oneLevelType;
	private short twoLevelType;
	private String telephone;
	private String qqNumb;
	private String email;
	private String consultTitle;
	private String consultContent;
	private Integer consultTime;
	private Integer replyTime;
	private String replyContent;
	private Integer replyPerson;
	private boolean isChecked;

	// Constructors

	/** default constructor */
	public Leavemess() {
	}

	/** minimal constructor */
	public Leavemess(short oneLevelType, short twoLevelType,
			String consultTitle, String consultContent, Integer consultTime,
			boolean isChecked) {
		this.oneLevelType = oneLevelType;
		this.twoLevelType = twoLevelType;
		this.consultTitle = consultTitle;
		this.consultContent = consultContent;
		this.consultTime = consultTime;
		this.isChecked = isChecked;
	}

	/** full constructor */
	public Leavemess(short oneLevelType, short twoLevelType, String telephone,
			String qqNumb, String email, String consultTitle,
			String consultContent, Integer consultTime, Integer replyTime,
			String replyContent, Integer replyPerson, boolean isChecked) {
		this.oneLevelType = oneLevelType;
		this.twoLevelType = twoLevelType;
		this.telephone = telephone;
		this.qqNumb = qqNumb;
		this.email = email;
		this.consultTitle = consultTitle;
		this.consultContent = consultContent;
		this.consultTime = consultTime;
		this.replyTime = replyTime;
		this.replyContent = replyContent;
		this.replyPerson = replyPerson;
		this.isChecked = isChecked;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "oneLevelType", nullable = false)
	public short getOneLevelType() {
		return this.oneLevelType;
	}

	public void setOneLevelType(short oneLevelType) {
		this.oneLevelType = oneLevelType;
	}

	@Column(name = "twoLevelType", nullable = false)
	public short getTwoLevelType() {
		return this.twoLevelType;
	}

	public void setTwoLevelType(short twoLevelType) {
		this.twoLevelType = twoLevelType;
	}

	@Column(name = "telephone", length = 12)
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "qqNumb", length = 12)
	public String getQqNumb() {
		return this.qqNumb;
	}

	public void setQqNumb(String qqNumb) {
		this.qqNumb = qqNumb;
	}

	@Column(name = "email", length = 50)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "consultTitle", nullable = false, length = 100)
	public String getConsultTitle() {
		return this.consultTitle;
	}

	public void setConsultTitle(String consultTitle) {
		this.consultTitle = consultTitle;
	}

	@Column(name = "consultContent", nullable = false, length = 65535)
	public String getConsultContent() {
		return this.consultContent;
	}

	public void setConsultContent(String consultContent) {
		this.consultContent = consultContent;
	}

	@Column(name = "consultTime", nullable = false)
	public Integer getConsultTime() {
		return this.consultTime;
	}

	public void setConsultTime(Integer consultTime) {
		this.consultTime = consultTime;
	}

	@Column(name = "replyTime")
	public Integer getReplyTime() {
		return this.replyTime;
	}

	public void setReplyTime(Integer replyTime) {
		this.replyTime = replyTime;
	}

	@Column(name = "replyContent", length = 65535)
	public String getReplyContent() {
		return this.replyContent;
	}

	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}

	@Column(name = "replyPerson")
	public Integer getReplyPerson() {
		return this.replyPerson;
	}

	public void setReplyPerson(Integer replyPerson) {
		this.replyPerson = replyPerson;
	}

	@Column(name = "isChecked", nullable = false)
	public boolean getIsChecked() {
		return this.isChecked;
	}

	public void setIsChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}

}